package com.example.controller;

import com.example.common.util.R;
import com.example.service.IClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	private IClassesService classesService;
	@GetMapping("/list")
	public R list(){
		return R.ok().data("list",classesService.list());
	}
}
